@import url('https://fonts.googleapis.com/css?family=Indie+Flower&display=swap');



.square {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.square div:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #3cff00;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.8s;
    animation: animate 6s linear infinite;
    


}

.square:hover div:nth-child(1) {
    border: none;
    background: rgba(255,255,255);

}

.square div:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #7ef9ff;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.8s;
    animation: animate2 4s linear infinite;

}

.square:hover div:nth-child(2) {
    border: none;
    background: rgba(126,249,255);
    align-items: center;

}

.square div:nth-child(3) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ff66cc;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    transition: 0.8s;
    animation: animate 10s linear infinite;

}

.square:hover div:nth-child(3) {
    border: none;
    background: rgb(166, 255, 0);
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

@keyframes animate2
{
    0%
    {
        transform: rotate(360deg);
    }
    100%
    {
        transform: rotate(0deg);
    }
}

.button a {
    position: relative;
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 30px;
    font-family: 'Indie Flower', sans-serif;
}


.square:hover a {
   color: #000;
}

@media (max-width: 575px) {
  .square {
    width: 120px;
    height: 120px;
  }

  .button a {
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .square {
    width: 100px;
    height: 100px;
  }

  .button a {
    font-size: 20px;
  }
}